home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / ada / gnat1792.zip / gnat179b / t-adainc / a-ngelfu.ads < prev    next >
Text File  |  1994-05-19  |  5KB  |  78 lines

  1. ------------------------------------------------------------------------------
  2. --                                                                          --
  3. --                         GNAT RUNTIME COMPONENTS                          --
  4. --                                                                          --
  5. --                     A D A . N U M E R I C S . G E F                      --
  6. --                                                                          --
  7. --                                 S p e c                                  --
  8. --                                                                          --
  9. --                            $Revision: 1.3 $                              --
  10. --                                                                          --
  11. --           Copyright (c) 1992,1993,1994 NYU, All Rights Reserved          --
  12. --                                                                          --
  13. -- GNAT is free software;  you can  redistribute it  and/or modify it under --
  14. -- terms of the  GNU General Public License as published  by the Free Soft- --
  15. -- ware  Foundation;  either version 2,  or (at your option) any later ver- --
  16. -- sion.  GNAT is distributed in the hope that it will be useful, but WITH- --
  17. -- OUT ANY WARRANTY;  without even the  implied warranty of MERCHANTABILITY --
  18. -- or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License --
  19. -- for  more details.  You should have  received  a copy of the GNU General --
  20. -- Public License  distributed with GNAT;  see file COPYING.  If not, write --
  21. -- to the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. --
  22. --                                                                          --
  23. ------------------------------------------------------------------------------
  24.  
  25. generic
  26.    type Float_Type is digits <>;
  27. package Ada.Numerics.Generic_Elementary_Functions is
  28.    --  subtype Float_Type is Float;
  29.  
  30.    function Sqrt    (X           : Float_Type'Base) return Float_Type'Base;
  31.    function Log     (X           : Float_Type'Base) return Float_Type'Base;
  32.    function Log     (X, Base     : Float_Type'Base) return Float_Type'Base;
  33.    function Exp     (X           : Float_Type'Base) return Float_Type'Base;
  34.    function "**"    (Left, Right : Float_Type'Base) return Float_Type'Base;
  35.  
  36.    function Sin     (X           : Float_Type'Base) return Float_Type'Base;
  37.    function Sin     (X, Cycle    : Float_Type'Base) return Float_Type'Base;
  38.    function Cos     (X           : Float_Type'Base) return Float_Type'Base;
  39.    function Cos     (X, Cycle    : Float_Type'Base) return Float_Type'Base;
  40.    function Tan     (X           : Float_Type'Base) return Float_Type'Base;
  41.    function Tan     (X, Cycle    : Float_Type'Base) return Float_Type'Base;
  42.    function Cot     (X           : Float_Type'Base) return Float_Type'Base;
  43.    function Cot     (X, Cycle    : Float_Type'Base) return Float_Type'Base;
  44.  
  45.    function Arcsin  (X           : Float_Type'Base) return Float_Type'Base;
  46.    function Arcsin  (X, Cycle    : Float_Type'Base) return Float_Type'Base;
  47.    function Arccos  (X           : Float_Type'Base) return Float_Type'Base;
  48.    function Arccos  (X, Cycle    : Float_Type'Base) return Float_Type'Base;
  49.  
  50.    function Arctan  (Y           : Float_Type'Base;
  51.                      X           : Float_Type'Base := 1.0)
  52.      return Float_Type'Base;
  53.  
  54.    function Arctan  (Y           : Float_Type'Base;
  55.                      X           : Float_Type'Base;
  56.                      Cycle       : Float_Type'Base)
  57.       return Float_Type'Base;
  58.  
  59.    function Arccot  (X           : Float_Type'Base;
  60.                      Y           : Float_Type'Base := 1.0)
  61.      return Float_Type'Base;
  62.  
  63.    function Arccot  (X           : Float_Type'Base;
  64.                      Y           : Float_Type'Base := 1.0;
  65.                      Cycle       : Float_Type'Base)
  66.      return Float_Type'Base;
  67.  
  68.    function Sinh    (X           : Float_Type'Base) return Float_Type'Base;
  69.    function Cosh    (X           : Float_Type'Base) return Float_Type'Base;
  70.    function Tanh    (X           : Float_Type'Base) return Float_Type'Base;
  71.    function Coth    (X           : Float_Type'Base) return Float_Type'Base;
  72.    function Arcsinh (X           : Float_Type'Base) return Float_Type'Base;
  73.    function Arccosh (X           : Float_Type'Base) return Float_Type'Base;
  74.    function Arctanh (X           : Float_Type'Base) return Float_Type'Base;
  75.    function Arccoth (X           : Float_Type'Base) return Float_Type'Base;
  76.  
  77. end Ada.Numerics.Generic_Elementary_Functions;
  78.